package com.cyj.dream.middleware.blackwhitelist.service;

import com.cyj.dream.middleware.blackwhitelist.entity.SysBlackWhite;

import java.util.List;

/**
 * @Description: 黑白名单标准服务层
 * @BelongsProject: DreamChardonnay
 * @BelongsPackage: com.cyj.dream.middleware.blackwhitelist.service
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-15 14:52
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
public interface SysBlackWhiteService {

    /**
     * 查询全部黑白名单信息
     *
     * @return boolean
     * @date 2021-9-15 14:31
     * @author ChenYongJia
     * @version 1.0
     */
    List<SysBlackWhite> getAllSysBlackWhite();

    /**
     * 根据sysBlackWhiteId查询黑白名单信息
     *
     * @param sysBlackWhiteId 黑白名单id
     * @return boolean
     * @date 2021-9-15 14:31
     * @author ChenYongJia
     * @version 1.0
     */
    SysBlackWhite getSysBlackWhiteById(Long sysBlackWhiteId);

    /**
     * 添加黑白名单信息
     *
     * @param sysBlackWhite 黑白名单对象
     * @return boolean
     * @date 2021-9-15 14:31
     * @author ChenYongJia
     * @version 1.0
     */
    boolean insertSysBlackWhite(SysBlackWhite sysBlackWhite);

    /**
     * 修改黑白名单信息
     *
     * @param sysBlackWhite 黑白名单对象
     * @return boolean
     * @date 2021-9-15 14:31
     * @author ChenYongJia
     * @version 1.0
     */
    boolean updateSysBlackWhite(SysBlackWhite sysBlackWhite);

    /**
     * 删除黑白名单信息
     *
     * @param sysBlackWhite 黑白名单对象
     * @return boolean
     * @date 2021-9-15 14:31
     * @author ChenYongJia
     * @version 1.0
     */
    boolean delSysBlackWhite(List<SysBlackWhite> sysBlackWhite);

}
